/*
 * @Description:
 * @Author: shilinzhou
 * @Date: 2024-02-01 09:54:31
 * @LastEditors: James324
 * @LastEditTime: 2024-03-25 10:25:43
 */
import { generateRandomId } from '@/utils';
import type { BaseTableConfig } from '@/components/base-ui/base-table/type';

export const modalMaterialConfig: BaseTableConfig = {
    items: [
        {
            modelKey: 'classificationName',
            columnProps: {
                label: '分类名称',
                width: 240
            },
            elInputProps: {
                maxlength: '50',
                showWordLimit: true
            },
            validProps: {
                id: generateRandomId(),
                required: true
            }
        },
        {
            modelKey: 'description',
            columnProps: {
                label: '描述',
                width: 300
            },
            elInputProps: {
                type: 'textarea',
                maxlength: '200',
                showWordLimit: true
            },
            validProps: {
                id: generateRandomId()
            }
        }
    ],
    actionProps: {
        width: 160
    },
    modalActionShow: true
};
